<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">

</head>
<body>

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">后台管理系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="{{{$userInfo.avater_img}}}" class="layui-nav-img">
                    {{{$userInfo.account}}}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="./index?flag=0">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                {{{foreach from=$tree item=group}}}
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">
                            {{{if isset($group.name)}}}
                                {{{$group.name}}}
                            {{{/if}}}
                        </a>
                        <dl class="layui-nav-child">
                            {{{if isset($group.children)}}}
                                {{{foreach from=$group.children item=groupTwo}}}
                                    <dd>
                                        <a href="{{{$group.url}}}{{{$groupTwo.url}}}?name={{{$groupTwo.name}}}&url={{{$groupTwo.url}}}" target="iframeMain">
                                            {{{if isset($groupTwo.name)}}}
                                                {{{$groupTwo.name}}}
                                            {{{/if}}}
                                        </a>
                                    </dd>
                                {{{/foreach}}}
                            {{{/if}}}
                        </dl>
                    </li>
                {{{/foreach}}}
            </ul>
        </div>
    </div>

    <div class="layui-body" style="background:#f4f4f4;">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;height: 100%;">

            <iframe name="iframeMain" src="./welcome" scrolling="no" width="100%" height="100%"
                    style="border: none;background-color: #fff;"></iframe>

        </div>
    </div>

</div>
<script src="../../static/layui/layui.js" charset="utf-8"></script>

</body>
</html>
